<?php
	require_once "Zend/Json.php";
	
	$value_data =  $_POST['data'];
	
	$edata = explode ( "::", $value_data );
	
	foreach ( $edata as $e )
	{
		$pdata[] = explode ( ":", $e );
	}
	
	$rdata["standalone"] =  $pdata[0][1];
	$rdata["page"] =  $pdata[1][1];
	$rdata["id"] =  $pdata[2][1];

	$deletion = self::$plugins -> page -> deletePage( new Zend_Config( $rdata ) );
	
	if (! $value_data )
	{
		$data = array(
			"status" => "false",
			"message" => "Please don't try to hack it!"
		);
	}
	else
	{
		$data = $deletion;
	}
	
	echo Zend_Json::encode($data);
